<{include file="header.html"}>
<script type="text/javascript">

	function validate()
	{
		var firstname = document.getElementById('FIRST_NAME');
        var lastname = document.getElementById('FIRST_NAME');
        var phone = document.getElementById('PHONE');
        
        

		// checking NAME
		if(isEmptyTextBox(firstname, '<{$smarty.const._LB_FIRSTNAME_IS_EMPTY|utf8_escape_js}>'))
			return false;

		if(!isValidLengthTextBox(firstname, <{$smarty.const.MAX_LENGTH_NAME}>, '<{$smarty.const._LB_FIRSTNAME_IS_TOO_LONG|utf8_escape_js}>')){
            return false;
        }
        
        if(isEmptyTextBox(lastname, '<{$smarty.const._LB_LASTNAME_IS_EMPTY|utf8_escape_js}>'))
			return false;

		if(!isValidLengthTextBox(lastname, <{$smarty.const.MAX_LENGTH_NAME}>, '<{$smarty.const._LB_LASTNAME_IS_TOO_LONG|utf8_escape_js}>')){
            return false;
        }
        
        if(!isValidLengthTextBox(phone, <{$smarty.const.MAX_LENGTH_NAME}>, "<{$smarty.const._MSG_TELEPHONE_IS_TOO_LONG|utf8_escape_js}>"))
		{
			return false;
		}
		document.user_form.submit();
	}



</script>

<div id="content">
    <div class="container">
        <div class="main-content">
            <h1 class="title"><{$smarty.const._LB_ACCOUNT_MANAGEMENT|utf8_escape_html}></h1>
            <form action="<{$smarty.server.REQUEST_URI}>" method="post" name="user_form" id="form-booking">
			<input type="hidden" id="ID" value="<{$member->ID}>"/>
			<input type="hidden" id="act" name="act" value="<{$smarty.const.ACT_VALID_EDIT}>"/>
			<table>
				<td colspan="2"  style="padding-right: 20px;" align="right"><span class="powermail_mandatory">*</span> 
					<{$smarty.const._LB_REQUIRE_INFORMATION|utf8_escape_html}></td>
				</tr>
				<tr>
					<td width="20%"><{$smarty.const._LB_FIRST_NAME|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><input name="FIRST_NAME" id="FIRST_NAME" type="text" size="<{$smarty.const.SIZE_NAME}>" value="<{$member->FIRST_NAME|utf8_escape_html}>" /></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_LAST_NAME|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><input name="LAST_NAME" id="LAST_NAME" type="text" size="<{$smarty.const.SIZE_NAME}>" value="<{$member->LAST_NAME|utf8_escape_html}>" /></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_EMAIL|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><{$member->EMAIL|utf8_escape_html}></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_TELEPHONE|utf8_escape_html}>&nbsp;:&nbsp;</td>
					<td colspan="3"><input name="PHONE" id="PHONE" type="text" size="<{$smarty.const.SIZE_NAME}>" value="<{$member->PHONE|utf8_escape_html}>" /></td>
				</tr>
				<{if !$member->ID}>
				<tr>
					<td ><{$smarty.const._LB_PASSWORD|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><input name="PASS" id="PASS" type="password" size="<{$smarty.const.SIZE_NAME}>" value="" /></td>
				</tr>
				<tr>
					<td ><{$smarty.const._LB_REPEAT_PASSWORD|utf8_escape_html}>&nbsp;:&nbsp;<{$smarty.const._LB_REQUIRE_FIELD}></td>
					<td colspan="3"><input name="REPASS" id="REPASS" type="password" size="<{$smarty.const.SIZE_NAME}>" value="" /></td>
				</tr>
				<{/if}>
				<tr>
					<td ><{$smarty.const._LB_MEMBER_SUBSCRIBE_NEWSLETTER|utf8_escape_html}>&nbsp;:&nbsp;</td>
					<td colspan="3"><input type="checkbox" value="1" name="NEWSLETTER" <{if $member->NEWSLETTER}>checked<{/if}>/></td>
				</tr>
				<tr>
					<td ></td>
					<td class="submit" colspan="3" style="padding-top:10px"><br />
							<button type="reset" ><{$smarty.const._LB_RESET}></button>
							<button type="button" onclick="validate()"><{$smarty.const._LB_VALIDATE}></button>
					</td>
				</tr>
			</table>
			</form>
        </div>
        <div class="sidebar">
            <{include file="right_business_hours.html"}>
			<{include file="right_service.html"}>
        </div><!--End .sidebar-->
    </div>
</div>
<{include file="footer.html"}>